package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 微量元素
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("trace_element")
public class TraceElement extends Model<TraceElement> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 商品Id
     */
    @TableField("product_id")
    private String productId;
    /**
     * 元素名称
     */
    @TableField("element_name")
    private String elementName;
    /**
     * 最小值
     */
    @TableField("min_value")
    private Double minValue;
    /**
     * 最大值
     */
    @TableField("max_value")
    private Double maxValue;
    /**
     * 步长
     */
    @TableField("grow_num")
    private Double growNum;
    /**
     * 单位
     */
    private String unit;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 状态
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 修改时间
     */
    @TableField("update_date")
    private Date updateDate;
    @TableField("trace_plan_id")
    private Integer tracePlanId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getElementName() {
        return elementName;
    }

    public void setElementName(String elementName) {
        this.elementName = elementName;
    }

    public Double getMinValue() {
        return minValue;
    }

    public void setMinValue(Double minValue) {
        this.minValue = minValue;
    }

    public Double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Double maxValue) {
        this.maxValue = maxValue;
    }

    public Double getGrowNum() {
        return growNum;
    }

    public void setGrowNum(Double growNum) {
        this.growNum = growNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getTracePlanId() {
        return tracePlanId;
    }

    public void setTracePlanId(Integer tracePlanId) {
        this.tracePlanId = tracePlanId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TraceElement{" +
        "id=" + id +
        ", productId=" + productId +
        ", elementName=" + elementName +
        ", minValue=" + minValue +
        ", maxValue=" + maxValue +
        ", growNum=" + growNum +
        ", unit=" + unit +
        ", sort=" + sort +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", tracePlanId=" + tracePlanId +
        "}";
    }
}
